package com.pcafs.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 活动参加人员对象 act_user
 *
 * @author pcafs
 * @date 2021-05-03
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("act_user")
public class ActUser implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     *  id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 老师Id
     */
    private Long teacherId;

    /**
     * 活动ID
     */
    private Long activityId;

    /**
     * 得分情况
     */
    private BigDecimal activityScore;

    /**
     * 活动结果
     */
    private String activityResult;

    /**
     * 活动名称
     */
    @TableField(exist = false)
    private String actName;

    /**
     * 参加者名称
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 活动状态
     */
    @TableField(exist = false)
    private String actState;

    /**
     * 获奖名称
     */
    @TableField(exist = false)
    private String actResultName;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
